home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: axcdf1.pd.infn.it!LORETI
- From: loreti@axcdf1.pd.infn.it (Maurizio Loreti)
- Subject: Re: Help !!!!! on 'strstr"
- X-Nntp-Posting-Host: axcdf1.pd.infn.it
- Message-ID: <DoMKD7.I9C@news.cern.ch>
- Sender: news@news.cern.ch (USENET News System)
- Reply-To: loreti@axcdf1.pd.infn.it
- Organization: I.N.F.N. Padova - CDF/CMS VAXcluster
- References: <314703FF.4045@msmail.st.stems.com>,<DoE30t.G5u@iquest.net>
- Date: Thu, 21 Mar 1996 15:58:17 GMT
-
- In article <DoE30t.G5u@iquest.net>, dlmiller@iquest.net (Doug & Rose Miller) writes:
-
- Please, hit <CR> before column 80.
-
- >Use strupr() on both strings -- to insure they are both the same case -- before using strstr().
- >Of course, strlwr() would work also.
-
- My systems lack a strlwr and a strupr; they are non-standard.
-
- >Perhaps you should copy both strings to temporary areas and use strupr() on the temps,
- >because it does not merely return the case-shifted string, it actually case-shifts the original.
-
- You MUST. You are not allowed to modify string constants.
- --
- Maurizio Loreti http://mvxpd5.pd.infn.it/wwwcdf/mlo.html
- Un. of Padova, Dept. of Physics - Padova, Italy loreti@padova.infn.it
-